package com.xxx.kjds.service;


import com.xxx.kjds.entity.Order;
import com.xxx.kjds.entity.OrderExample;

import java.util.List;

public interface OrderService {
    
    public long countByExample(OrderExample example);
    
    public int deleteByExample(OrderExample example);
    
    public int deleteByPrimaryKey(Integer id);
    
    public int insert(Order record);
    
    public int insertSelective(Order record);
    
    public List<Order> selectByExample(OrderExample example);
    
    public Order selectByPrimaryKey(Integer id);
    
    public int updateByExampleSelective(Order record, OrderExample example);
    
    public int updateByExample(Order record, OrderExample example);
    
    public int updateByPrimaryKeySelective(Order record);
    
    public int updateByPrimaryKey(Order record);

    public List<Order> selectByUidAndState(Integer uid,String state);

    public List<Order> selectToBePaidFromOrder(Integer mvoId);

    public List<Order> selectToBeDeliveredFromOrder(Integer mvoId);

    public List<Order> selectDeliveredFromOrder(Integer mvoId);

    public List<Order> selectFinishedFromOrder(Integer mvoId);

    public List<Order> selectCanceledFromOrder(Integer mvoId);

    public int updateOrderState(Integer id , String state);
}
